ADP\BaseVersion\Includes\Core\RuleProcessor\SingleItemRuleProcessor D

Total Complexity 206
Dependencies 22
Dependents 1
Total lines 1,196
Lines of code 733
Logical lines of code 499
Comment lines 207
Methods 24
Properties 16

Methods 24

Method Rating Maintainability Complexity Lines of code
applyRangeDiscounts()
D
12
90 300
getItemsToDiscount()
D
29 30 124
applyProductAdjustment()
B
38 21 67
isProductMatched()
A
46 12 39
isCategoryMatched()
A
53 9 23
process()
A
44 7 50
sortItems()
A
54 8 22
__construct()
S
55 3 18
isRuleMatchedCart()
S
64 3 11
addFreeProducts()
S
63 3 10
addAutoAddProducts()
S
63 3 10
applyToCart()
S
60 2 14
applyChangesToCart()
S
72 2 6
addGifts()
S
72 2 6
addAutoAdds()
S
72 2 6
checkConditions()
S
80 1 3
matchConditions()
S
80 1 3
applyCartAdjustments()
S
80 1 3
checkLimits()
S
80 1 3
withContext()
S
81 1 3
getLastExecTime()
S
81 1 3
getRule()
S
82 1 3
getStatus()
S
82 1 3
getProcessorRule()
S
82 1 3